From: Ray Strode Date: Wed, 28 Apr 2021 14:36:46 +0000 (-0400) Subject: authPrompt: Don't clear querying service unless querying service fails X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~41 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a56d508d6977ada57298000ce317cdee5a3a954e;p=gnome-shell.git authPrompt: Don't clear querying service unless querying service fails At the moment we treat a failure in any service as a signal to stop tracking users responses to service questions. This commit makes sure we don't stop waiting for answers if a background service fails. Part-of: --- diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index de777450e..0b3da4ecb 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -321,8 +321,11 @@ var AuthPrompt = GObject.registerClass({ _onVerificationFailed(userVerifier, serviceName, canRetry) { const wasQueryingService = this._queryingService === serviceName; - this._queryingService = null; - this.clear(); + + if (wasQueryingService) { + this._queryingService = null; + this.clear(); + } this.updateSensitivity(canRetry); this.setActorInDefaultButtonWell(null);